<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title></title>
		<link rel="stylesheet" href="css/pintuer.css">
		<link rel="stylesheet" href="css/admin.css">
		<script src="js/jquery.js"></script>
		<script src="js/pintuer.js"></script>
		<script>
		
		
			
			
			$(document).ready(function(){
				
				var orginalValue = "修改前的值：";
				var name = orginalValue+"${name}";
				var age = orginalValue+"${age}";
				var salary = orginalValue+"${salary}";
				var joinTime = orginalValue+"${joinTime}";
				var isCPC = orginalValue+"${isCPC}";
				
				$("#name").attr("placeholder",name);
				$("#age").attr("placeholder",age);
				$("#salary").attr("placeholder",salary);
				$("#joinTime").attr("placeholder",joinTime);
				if (isCPC == true){
					$("#yes").attr("checked","checked");
				} else {
					$("#no").attr("checked","checked");
				}
				
				
			});
		</script>
		<style>
		
		</style>
		
	</head>
	<body>
		<div class="panel admin-panel">
		<div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改教师</strong></div>
		<div class="body-content">
			<form method="post" class="form-x" action="TeacherServlet?flag=4&originalTeaId=${originalTeaId}" id="edit-form">
			  
				<div class="form-group">
						   <div class="label">
							 <label>被修改的教师id：</label>
							 <label>${teaId}</label>
						   </div>
						 </div>
						 
						 <div class="form-group">
						   <div class="label">
							 <label>修改后的姓名：</label>
						   </div>
						   <div class="field">
							 <input type="text" class="input w50" value="" name="name" id="name" data-validate="required:请输入教师姓名" />
							 <div class="tips"></div>
						   </div>
						 </div>
						 
						 <div class="form-group">
						   <div class="label">
							 <label>修改后的年龄：</label>
						   </div>
						   <div class="field">
							 <input type="text" class="input w50" value="" name="age" id="age" data-validate="required:请输入教师年龄" />
							 <div class="tips"></div>
						   </div>
						 </div>
						 
						 <div class="form-group">
						   <div class="label">
							 <label>修改后的薪水：</label>
						   </div>
						   <div class="field">
							 <input type="text" class="input w50" value="" name="salary" id="salary" data-validate="required:请输入教师薪水" />
							 <div class="tips"></div>
						   </div>
						 </div>
						 
						 <div class="form-group">
						   <div class="label">
							 <label>修改后的入校日期：</label>
						   </div>
						   <div class="field">
							 <input type="text" class="input w50" value="" name="joinTime" id="joinTime" data-validate="required:请输入教师入校日期" />
							 <div class="tips"></div>
						   </div>
						 </div>
						 
						 <div class="form-group">
						   <div class="label">
							 <label>修改后是否为党员：</label>
						   </div>
						   <div class="field">
							 <div class="button-group radio">
							 
							 <label class="button active">
								  <span class="icon icon-check"></span>             
								 <input name="isCPC" value="是" type="radio" id = "yes">是       
							 </label>             
						   
							 <label class="button active">
								 <span class="icon icon-times"></span>          	
								 <input name="isCPC" value="否"  type="radio" id = "no">否
							 </label>         
							  </div>       
						   </div>
						</div>
						 
						 <div class="form-group">
					        <div class="label">
					          <label>班级：</label>
					        </div>
					        <div class="field">
					              <select name="classId" class="input" style="width:200px; line-height:17px;" >
					              <option value="">请选择班级和id</option>
					              <c:forEach items="${list}" var="sClass">
					              
					              <option value="${sClass.cId}">${sClass.cId}</option>
					              
					              </c:forEach>
					            </select>
					    
					        </div>
					      </div>
						 
						 
						<div class="form-group">
						   <div class="label">
							 <label></label>
						   </div>
						   <div class="field">
							 <button class="button bg-main icon-check-square-o" type="submit" id="edit"> 提交</button>
						   </div>
						
						</div>
						
						
			</form>
		</div>
		</div>
	</body>
</html>